//
//  HSYQRReaderView.h
//  HSY
//
//  Created by 陈浩 on 2017/4/10.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HSYQRReaderView;

@protocol HSYQRReaderViewDelegate < NSObject >

- (void) readerView: (HSYQRReaderView*) readerView
      didReadString: (NSString*) resultString;

/*
@optional
- (void) readerViewDidStart: (HSYQRReaderView*) readerView;
- (void) readerView: (HSYQRReaderView*) readerView
   didStopWithError: (NSError*) error;
*/
 
@end


@interface HSYQRReaderView : UIView

@property(nonatomic) CGRect rectOfInterest;

@property (nonatomic, weak) id <HSYQRReaderViewDelegate> delegate;

- (void)start;
- (void)stop;

@end
